#ifndef CDESIGN_H
#define CDESIGN_H

#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QTextEdit>
#include <QLineEdit>
#include <ctime>
#include <QProgressBar>
#include <QCheckBox>

#include "../Models/MPictures.h"

class CDesign
{
private:
    CDesign();
    ~CDesign();

    static CDesign* singleton;
    int i;
    int tmp;
    bool is_changed;

public:
    static CDesign* get_instance();

    void change_color_widget(QWidget *w);
    void change_color_button(QPushButton *p);
    void change_color_label(QLabel *l);
    void change_color_label_border(QWidget *l);
    void change_color_text(QTextEdit *t);
    void change_color_line(QLineEdit *e);
    void change_color_bar(QProgressBar *b);
    void change_color_box(QCheckBox *c);

    void set_i(int _i);
    int get_i();

    void set_tmp(int _tmp);
    int get_tmp();

    void set_changed(bool _change);
    bool get_changed();
};

#endif // CDESIGN_H
